<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>
	<form id="form" action="__SELF__" method="post" class="form-horizontal">
		<div class="form-item cf">
			<label class="item-label">标识<span class="check-tips">(消息类型标识，字母开头，数字字母下划线组合，20字符以内)</span></label>
			<div class="controls">
				<input type="text" class="text" name="name" value="{$info.name|default=''}" />
			</div>
		</div>
		<div class="form-item">
            <label class="item-label">提示名称<span class="check-tips">（消息提示名称）</span></label>
            <div class="controls">
				<input type="text" class="text" name="title" value="{$info.title|default=''}" />
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">跳转URL<span class="check-tips">（点击链接时跳转的地址，通过U解析）</span></label>
            <div class="controls">
				<input type="text" class="text" name="url" value="{$info.url|default=''}" />
            </div>
        </div>
		<div class="form-item cf">
			<label class="item-label">提示内容<span class="check-tips">(消息提示内容模板，可替换变量 [num], [url])</span></label>
			<div class="controls">
				<label class="textarea input-large">
					<textarea name="template">{$info.template|default=''}</textarea>
				</label>
			</div>
		</div>
		<div class="form-item">
			<div class="controls edit_sort_btn">
				<input type="hidden" name="id" value="{$info.id|default=''}" />
				<button class="btn submit-btn ajax-post" target-form="form-horizontal" type="submit">确 定</button>
				<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
		</div>
	</form>
</block>

<block name="script">
<script type="text/javascript">
	highlight_subnav('{:U('Plugins/message')}');
</script>
</block>